LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := main

SDL_PATH := ../SDL
LUA_PATH := ../LUA/lua-5.1.4
CORSIXTH_PATH := corsix-th-src

LOCAL_C_INCLUDES := \
	$(LOCAL_PATH)/$(SDL_PATH)/include \
	$(LOCAL_PATH)/$(LUA_PATH)/src \
	$(LOCAL_PATH) \
	$(CORSIXTH_PATH)/CorsixTH/Src/ \
	$(LOCAL_PATH)/$(CORSIXTH_PATH)/agg/include/

# Add your application source files here...
LOCAL_SRC_FILES := \
	$(subst $(LOCAL_PATH)/,, \
	$(wildcard $(LOCAL_PATH)/$(CORSIXTH_PATH)/CorsixTH/SrcUnshared/*.cpp) \
	$(wildcard $(LOCAL_PATH)/$(CORSIXTH_PATH)/CorsixTH/SrcUnshared/*.c) \
	$(wildcard $(LOCAL_PATH)/$(CORSIXTH_PATH)/CorsixTH/Src/*.cpp) \
	$(wildcard $(LOCAL_PATH)/$(CORSIXTH_PATH)/CorsixTH/Src/*.c) \
	$(wildcard $(LOCAL_PATH)/$(CORSIXTH_PATH)/LFS/*.c) \
	$(wildcard $(LOCAL_PATH)/$(CORSIXTH_PATH)/LPEG/*.c)) \
	$(CORSIXTH_PATH)/agg/src/agg_image_filters.cpp \
	$(SDL_PATH)/src/main/android/SDL_android_main.cpp

LOCAL_SHARED_LIBRARIES := SDL

LOCAL_STATIC_LIBRARIES := LUA

LOCAL_LDLIBS := -lGLESv1_CM -llog

include $(BUILD_SHARED_LIBRARY)
